<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.blizzard.com/wow/ui/">
	<Script file="Pets.lua"></Script>
	
	<CheckButton name="AltoPetButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="37" y="37"/>
		</Size>
		<DisabledTexture file="Interface\PetPaperDollFrame\UI-PetFrame-Slots-Companions">
			<TexCoords left="0.203125" right="0.765625" top="0.203125" bottom="0.7625625"/>
		</DisabledTexture>
		<HighlightTexture name="$parentHighlight" file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/>
		<CheckedTexture file="Interface\Buttons\CheckButtonHilight" alphaMode="ADD"/>
		<Scripts>
			<OnEnter>
				Altoholic.Pets:OnEnter(self)
			</OnEnter>
			<OnLeave>
				AltoTooltip:Hide();
			</OnLeave>
			<OnClick>
				Altoholic.Pets:OnClick(self, button)
			</OnClick>
		</Scripts>
	</CheckButton>
	
	<Frame name="AltoholicFramePets" parent="AltoholicTabCharacters" hidden="true">
		<Size>
			<AbsDimension x="615" y="306"/>
		</Size>
		<Anchors>
			<Anchor point="TOPRIGHT">
				<Offset>
					<AbsDimension x="39" y="-105"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Frames>
			<Frame name="$parentNormal">
				<Size>
					<AbsDimension x="615" y="306"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$Parent_PageNumber" inherits="GameFontHighlightSmallOutline" text="Page 1 of 2">
							<Anchors>
								<Anchor point="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="445" y="93"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
					<Layer level="ARTWORK">
						<FontString name="$Parent_PetName" inherits="DialogButtonNormalText" justifyH="Center">
							<Size>
								<AbsDimension x="318" />
							</Size>
							<Anchors>
								<Anchor point="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="25" y="25"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<PlayerModel name="$Parent_ModelFrame">
						<Size>
							<AbsDimension x="318" y="220"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="25" y="-25"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								Model_OnLoad(self);
								self:RegisterEvent("DISPLAY_SIZE_CHANGED");
							</OnLoad>
							<OnEvent>
								self:RefreshUnit();
							</OnEvent>
							<OnUpdate>
								Model_OnUpdate(self, elapsed);
							</OnUpdate>
						</Scripts>
						<Frames>
							<Button name="$ParentRotateLeftButton">
								<Size>
									<AbsDimension x="35" y="35"/>
								</Size>
								<Anchors>
									<Anchor point="TOPLEFT">
										<Offset>
											<AbsDimension x="10" y="-10"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnLoad>
										self:RegisterForClicks("LeftButtonDown", "LeftButtonUp");
									</OnLoad>
									<OnClick>
										Model_RotateLeft(self:GetParent());
									</OnClick>
								</Scripts>
								<NormalTexture file="Interface\Buttons\UI-RotationLeft-Button-Up"/>
								<PushedTexture file="Interface\Buttons\UI-RotationLeft-Button-Down"/>
								<HighlightTexture file="Interface\Buttons\ButtonHilight-Round" alphaMode="ADD"/>
							</Button>
							<Button name="$ParentRotateRightButton">
								<Size>
									<AbsDimension x="35" y="35"/>
								</Size>
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="$ParentRotateLeftButton" relativePoint="TOPRIGHT"/>
								</Anchors>
								<Scripts>
									<OnLoad>
										self:RegisterForClicks("LeftButtonDown", "LeftButtonUp");
									</OnLoad>
									<OnClick>
										Model_RotateRight(self:GetParent());
									</OnClick>
								</Scripts>
								<NormalTexture file="Interface\Buttons\UI-RotationRight-Button-Up"/>
								<PushedTexture file="Interface\Buttons\UI-RotationRight-Button-Down"/>
								<HighlightTexture file="Interface\Buttons\ButtonHilight-Round" alphaMode="ADD"/>
							</Button>
						</Frames>
					</PlayerModel>
				
					<CheckButton name="$Parent_Button1" inherits="AltoPetButtonTemplate" id="1">
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="360" y="-100"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button2" inherits="AltoPetButtonTemplate" id="2">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button1" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="4" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button3" inherits="AltoPetButtonTemplate" id="3">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button2" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="4" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button4" inherits="AltoPetButtonTemplate" id="4">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button3" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="4" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button5" inherits="AltoPetButtonTemplate" id="5">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button4" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="4" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button6" inherits="AltoPetButtonTemplate" id="6">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button5" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="4" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button7" inherits="AltoPetButtonTemplate" id="7">
						<Anchors>
							<Anchor point="TOP" relativeTo="$Parent_Button1" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-5"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button8" inherits="AltoPetButtonTemplate" id="8">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button7" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="4" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button9" inherits="AltoPetButtonTemplate" id="9">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button8" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="4" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button10" inherits="AltoPetButtonTemplate" id="10">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button9" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="4" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button11" inherits="AltoPetButtonTemplate" id="11">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button10" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="4" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button12" inherits="AltoPetButtonTemplate" id="12">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button11" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="4" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
				
					<Button name="$ParentPrevPage">
						<Size>
							<AbsDimension x="32" y="32"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="410" y="83"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								Altoholic.Pets:GoToPreviousPage()
							</OnClick>
						</Scripts>
						<NormalTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Up"/>
						<PushedTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Down"/>
						<DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Disabled"/>
						<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
					</Button>
					<Button name="$ParentNextPage">
						<Size>
							<AbsDimension x="32" y="32"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT" relativeTo="$ParentPrevPage" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="80" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								Altoholic.Pets:GoToNextPage()
							</OnClick>
						</Scripts>
						<NormalTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Up"/>
						<PushedTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Down"/>
						<DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Disabled"/>
						<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
					</Button>
				</Frames>
			</Frame>
		</Frames>
	</Frame>

</Ui>